fs: fat: Fix cache align error message in fatwrite
authorNobuhiro Iwamatsu <[email protected]>
Tue, 8 Apr 2014 02:12:46 +0000 (11:12 +0900)
committerTom Rini <[email protected]>
Mon, 12 May 2014 19:19:45 +0000 (15:19 -0400)
commit8abd053cf07a1e4264d59c671e05a602fc7a31ad
treecba2570aa1881b8ef1471117fee1c8398117122a
parent8e2615752ee6d5daf8ce2e1e599a0512750f24b9
fs: fat: Fix cache align error message in fatwrite

Use of malloc of do_fat_write() causes cache error on ARM v7 platforms.
Perhaps, the same problem will occur at any other CPUs.
This replaces malloc with memalign to fix cache buffer alignment.

Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
Signed-off-by: Yoshiyuki Ito <[email protected]>
Tested-by: Hector Palacios <[email protected]>
fs/fat/fat_write.c